package com.wbao.dianniu.ui;

import android.os.Bundle;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.RelativeLayout;

import com.umeng.analytics.MobclickAgent;
import com.wbao.dianniu.R;

/**
 * 基础设置
 * 
 * @author yejianjun
 * 
 */
public class BaseSetting extends BaseActivity {
	private RelativeLayout rl_notify, rl_cache;
	private CheckBox mCBox;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentLayout(R.layout.activity_base_setting);
		setTitleName("基础设置");
		rl_notify = (RelativeLayout) findViewById(R.id.rl_message_notify);
		rl_cache = (RelativeLayout) findViewById(R.id.rl_clean_cache);
		mCBox = (CheckBox) findViewById(R.id.cb_dont_drsturb);
		rl_notify.setOnClickListener(this);
		rl_cache.setOnClickListener(this);
		mCBox.setOnCheckedChangeListener(mListener);
	}

	OnCheckedChangeListener mListener = new OnCheckedChangeListener() {

		@Override
		public void onCheckedChanged(CompoundButton buttonView,
				boolean isChecked) {
			// TODO Auto-generated method stub
			if(isChecked){
			}else{
			}
		}
	};
	public void onResume() {
		super.onResume();
		MobclickAgent.onResume(this);
		}
		public void onPause() {
		super.onPause();
		MobclickAgent.onPause(this);
		}
}
